package com.meida.module.bus.client.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户类型
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DomainEnum {
    user("USER", "用户"),
    employee("EMPLOYEE", "销售");

    DomainEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @EnumValue
    private final String code;
    private final String desc;

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
